package com.bottle.service.impl;

import com.bottle.enity.SingleChatRecord;
import com.bottle.service.ChatRecrdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;

/**
 * @author: chenyuncong
 * @Date: 2020/5/11 16:39
 */
@Service
public class ChatRecrdServiceImpl implements ChatRecrdService {
    @Autowired
    private MongoTemplate mongoTemplate;

    //保存聊天记录
    @Override
    public SingleChatRecord saveSingleChatRecord(SingleChatRecord scr) {
        return mongoTemplate.save(scr);
    }
}
